<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreatePickingOrderEntityTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_reservation}" for="reservation" />
                    <h:selectOneMenu id="reservation" value="#{pickingOrderEntityController.selected.reservation}" title="#{bundle.CreatePickingOrderEntityTitle_reservation}" >
                        <f:selectItems value="#{reservationEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_product}" for="product" />
                    <h:selectOneMenu id="product" value="#{pickingOrderEntityController.selected.product}" title="#{bundle.CreatePickingOrderEntityTitle_product}" >
                        <f:selectItems value="#{productEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_pickList}" for="pickList" />
                    <h:selectOneMenu id="pickList" value="#{pickingOrderEntityController.selected.pickList}" title="#{bundle.CreatePickingOrderEntityTitle_pickList}" >
                        <f:selectItems value="#{pickListEntityController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_status}" for="status" />
                    <h:inputText id="status" value="#{pickingOrderEntityController.selected.status}" title="#{bundle.CreatePickingOrderEntityTitle_status}" />
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_pickDate}" for="pickDate" />
                    <h:inputText id="pickDate" value="#{pickingOrderEntityController.selected.pickDate}" title="#{bundle.CreatePickingOrderEntityTitle_pickDate}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_id}" for="id" />
                    <h:inputText id="id" value="#{pickingOrderEntityController.selected.id}" title="#{bundle.CreatePickingOrderEntityTitle_id}" />
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_createdAt}" for="createdAt" />
                    <h:inputText id="createdAt" value="#{pickingOrderEntityController.selected.createdAt}" title="#{bundle.CreatePickingOrderEntityTitle_createdAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_createdBy}" for="createdBy" />
                    <h:inputText id="createdBy" value="#{pickingOrderEntityController.selected.createdBy}" title="#{bundle.CreatePickingOrderEntityTitle_createdBy}" />
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_lastModifiedAt}" for="lastModifiedAt" />
                    <h:inputText id="lastModifiedAt" value="#{pickingOrderEntityController.selected.lastModifiedAt}" title="#{bundle.CreatePickingOrderEntityTitle_lastModifiedAt}" >
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreatePickingOrderEntityLabel_lastModifiedBy}" for="lastModifiedBy" />
                    <h:inputText id="lastModifiedBy" value="#{pickingOrderEntityController.selected.lastModifiedBy}" title="#{bundle.CreatePickingOrderEntityTitle_lastModifiedBy}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{pickingOrderEntityController.create}" value="#{bundle.CreatePickingOrderEntitySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{pickingOrderEntityController.prepareList}" value="#{bundle.CreatePickingOrderEntityShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreatePickingOrderEntityIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
